package vi.org.rongcloud19test.utils;

import android.view.View;
import android.widget.Toast;

import io.rong.imkit.model.ProviderTag;
import io.rong.imkit.model.UIMessage;
import io.rong.message.TextMessage;
import vi.org.rongcloud19test.MainActivity;

/**
 * Created by Vicky on 2015/11/24.
 * RongCloud19Test
 * contact way: 317461087@qq.com
 */
@ProviderTag( messageContent = TextMessage.class , showPortrait = true , showSummaryWithName = true)
public class TextMessageItemProvider extends io.rong.imkit.widget.provider.TextMessageItemProvider {

    @Override
    public void onItemClick(View view, int position, TextMessage content, UIMessage message) {
        super.onItemClick(view, position, content, message);
        Toast.makeText(MainActivity.mContext,"you click"+message.getSenderUserId(),Toast.LENGTH_LONG).show();
    }
}
